package cn.kgc.exception;

import cn.kgc.utils.IErrorCode;

public enum  OrderErrorCode implements IErrorCode {
   ORDER_No_EXIST("4001","订单不存在"),
    OREER_ARGS_ERROR("4002","订单参数传输异常"),
    No_ALIDSEAT("4003","座位已经被预定，无法下单"),
    NO_ORDER_LINKEDUSER("4004","下单没有此相关联系人");



    private String errorCode;
    private String errorMsg;


    OrderErrorCode(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMessage() {
        return errorMsg;
    }


}
